/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.me.cine25;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.ListView;
import java.util.LinkedList;

/**
 *
 * @author Jesus
 */
public class Top25 extends Activity {
    LinkedList<Bitmap> lista = new LinkedList<Bitmap>();
    private int[] myImageIds = {
        R.drawable.foto1,
        R.drawable.foto2,
        R.drawable.foto3,
        R.drawable.foto5
    };
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.top25);
        ListView a = (ListView) findViewById(R.id.listatop25);
        cargarTop25();
        a.setAdapter(new Top25Adapter(this,lista));

    }

    private void cargarTop25() {
        for (int i = 0; i < myImageIds.length; i++) {
            lista.add(BitmapFactory.decodeResource(getResources(), myImageIds[i]));
        }
    }
}
